<?php
    session_start();
    
    $logged='<div id="cont"></div>';
    if(isset($_SESSION['user'])){
        $logged = '<div id="cont">LOGGED</div>';
    }
    
    require("header.php");
    $foot = file_get_contents('footer.html');
    echo $logged;
?>
        <div id="status">
            <div id="text">
                <div id="textNum">Слов для модерации:</div>
                <div id="numOfWords">
                </div>
            </div>
            <div id="img_cont">
                <div id="load_img"></div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
        
        <div class="main">
            <div id="auth_form">
                <form id="login_form" method="post">
                    <input type="text" id="username" name="username" />
                    <div class="clear"></div>
                    <input type="password" id="pass" name="pass" />
                    <div class="clear"></div>
                    <input type="image" id="btn_login"  src="../css/image/login.png" />
                    <div id="err_empty"></div>
                </form>
            </div>
            <div id="log_outd">
                <input type="image" id="btn_logout" src="../css/image/logout.png"/>
            </div>
            
            
            <div id="content_logged"></div>
        </div>
        <div id="offset"></div>
        
        <? echo $foot; ?>
        
    </body>
</html>